Remove the brackets.

Code:
If sms[0]="d" or "D" and sms[1]="e" or "E" and sms[2]="a" or "A" and sms[3]="c" or"C" and sms[4]="t" or"T" then ' Statement 4
Al.