why will you have to repeat the same thing again and again?
just use regular expression:
code:
sMessage = sMessage.replace(/whatever/gi,"something")
/whatever/gi << change the "whatever" to a letter; the
g means that it will search for multiple entries; the
i is ignore case.
edit: i do not think you should put words in there also.. because the letters will take care of it?
i will try and fix this.. i will update this post once its finished so hold on to your butt
------------
i did it some other way.. so here. i tested it and it works - not sure if you wanted this kind