anything that comes from client using chat comes as a string. But this ticket was about chat message which can be sent using JS console in browser in order to break chat channel. In this case 'text' can be a number and it can break the client side, which assumes it's a string. So I'm filtering out everything that's not a string on purpose.