Looking for an advice in a formula!

Hey community. I need an advice:

I have a form on the website where I get user’s nickname which may or may not have a space, for example: “Nickname” or “Nick name”.
But the problem is that people make mistakes and some times send something like: "Nick name ", with a space after, what kinda breaks my system.

I’ve tried to use a “replace()” function but I couldn’t find a way to delete spaces only after all words.
What can you advice me to do in such a case?

Thank you!

You can use the built-in function trim ( text )

For more information, see the help center:


If you want to learn more about Make, I recommend doing the tutorials in the Make Academy.


Oh really, thank you so much!