My *guess* is that you think it changes the string you call it on - it
doesn't, as strings are immutable. Instead, it returns a new string
which is a trimmed version of the old string.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.