I would seriously re-write the whole script and use Variables to carry the words and use TOK commands to loop through etc..