trimspace(str) removes all leading and trailing whitespace characters from str, including spaces, tabs, and newlines.
Signature
Example
Read a project name from a configuration file and strip any accidental whitespace before using it in commands:.project contains myapp\n, computed.project becomes myapp.