Can I again refer you to point 2 in andymps post?
Here's an example:
<Triviabot> Howrmanyedayswaregthereminbavweek?
That is what a question looks like when you strip the colour codes out.
<Triviabot> How many days are there in a week?
That is what the same question looks like on a standard white background with the spaces disguised.
Your cheat script (both versions) will NOT get past that - full stop. And with the letters being random, at best you will need a rather complex script (not your 3 liner) to be able to defeat it. At the end of the day why would anyone bother to try.
Cheating is for fools. And those that do it to look clever simply arn't.