Function trim( str )

Description:
Trims whitespace from both ends of a string.
Parameters:
str (String)
input string
Return Value (String):
str with any spaces trimmed from start and finish
Examples:
Signature:
String trim(String)