The limitation in doing this is when you use the OnEvent_ChatWndRecieveMessage the parameter of the message cannot be larger than what was originally there. Therefore you if you alter the message
code:
3x3y3x
For it to be
code:
xxxyyyxxx
it would display
code:
xxxyyy