I tried using the below functions using: string.find (s, pattern [, init [, plain]]) please give an example of using this if you have already used it. It gave me the following syntax error, I couldn't figure out what! C:\Documents and Settings\Chandu\Desktop\ex.au3(1,7) : ERROR: syntax error string. ~~~~~~^