I used the tokenize command in the script I wrote, and yet the OP states that it's not working on Mibbit, thus making me think that Mibbit might (somehow) be putting something on to the text that isn't being stripped off, thus making the script not work.