trim The trim function removes space from either side of a string: trim " hello " The above produces hello toStringstrimAllBack to top