Chat Text Filled with blank spaces

Hello,

Does a method exist in Blueprints to check if a Text is not filled with blank spaces only ?
I already check if the text is empty but the user can still send messages with blank spaces.

Thanks for your help !

I dont know if there is a better way to do it, but what I am doing is:

Get the string, replace space with nothing. For the result, get a len, if its more than 0, thats mean the string does contain something else than just spaces. But if its 0, the string is full of spaces, so you can ignore it.

Let me know if there is a best blueprint way to do it.

1 Like