I'm not great with javascript but I think if you're trying to really simplify this, you could parse over the input string and assign different text colors to the letters instead of creating different colored tiles.
For further actions, you may consider blocking this person and/or reporting abuse
I'm not great with javascript but I think if you're trying to really simplify this, you could parse over the input string and assign different text colors to the letters instead of creating different colored tiles.