trim(str) - Removes the leading and trailing space characters from str