This function strips all whitespace characters from both ends of a string and returns
the stripped string. The following characters are whitespace characters: space, form-feed ("\f"),
newline ("\n"), carriage return ("\r"), horizontal tab ("\t"), and vertical tab ("\v").