Removing space's from the start and end of a string
Hi Reader.
I have a program where a user enters some text. Some times the user adds one or more spaces at the front and/or back of the text they have entered, for example:
(" I am the space master! ")
Is there anyway to remove these spaces but still leave the other spaces there. So the above would come the below:
("I am the space master!")
I have seen there are already some posts on this topic but they all remove all the spaces in the string. I just want to remove the ones at the beginning and end.