Identical messages adding invisible character at the end

Hi everyone,
i’m working on a game with twitch chat integration. (choosed this category because it’s more related to the chat than the game itself)
I’ve created a validation function to check, if the coordinates from the message are valid.

While testing, i noticed, if the message is sent multiple times, there is a invisible character at every second message.
Even after .strip() and .replace(" ", "") the string, it is still there.
The weird thing is, inside the console, the message is not showing any space, but the length of the string still displays 3.

This is added by third party browser extensions

To attempt to bypass chat spam limitations

The usual suspect here is 7tv

It is not Twitch doing it, it’s the user

Not sure the exact character in use by the plugin. I think it’s unicode \u2000

1 Like

ah okay, that was my guess that it had something to do with bypassing spam. And not coming from Twitch itself makes absolutely sense. Thank you very much for verifying and the fast answer!