Thanks, I'll take a look into RegEx. I usually would use variables, but in this case there are hundreds of words in the textfile and I wanna be able to easily add new ones to it, so working with variables would look a bit messy if they're all in my script and wouldn't be as easy to add new ones.