Remove space at specific index

If i take a input from a user with textbox, then i want to remove space in the end of input.

eg - Mayank
after the above word there is space.

is there a way to remove it??

Thank You

Text trim

but it will remove all the spaces

i just want to remove the space at the end if any

Incorrect

image

okk thank you

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.