Remove white space after word?

Hi guys,

When a user inputs text and finishes with a space how can I remove that from the input?

I can use trim but how to I check if white space exists at the end of an input?


Seems like you answered your own question. :wink:

Why bother? Just trim before using/storing the value anywhere.


Oh I was thinking truncate from end. Didn’t realise trimmed just got rid of this. lol.

Silly me.


1 Like