This is a frequently occuring problem of stripping excess whitespaces from text, and has come up heaps of times over heaps of versions of mIRC. People have suggested having an event with the original text, or $fulltext, etc... but the suggestions are never taken up -- most likely because it would cause fundamental changes to the mIRC scripting engine.