What is this return character?

You may want to have a look on this thread explaining the use of the string method trim() to cleanup trailing (and leading) characteres from a string.