Hello,
I have a string and I want to know how to remove any spaces at the end of the string?
For Example:
If the string says 'this is a test '
then I want it to replace it with 'this is a test'
(removes the last 2 spaces from the string but must leave the spaces between the words)
Anyone able to help me out ?
I have a string and I want to know how to remove any spaces at the end of the string?
For Example:
If the string says 'this is a test '
then I want it to replace it with 'this is a test'
(removes the last 2 spaces from the string but must leave the spaces between the words)
Anyone able to help me out ?