The trim function simply trims whitespace characters from the start and end of the string.