function stringTrim(str) {
  return stringTrimRight(stringTrimLeft(str));
}
Trim whitespace from begin and end of string.

@see testStringTrim();

@param {String} str  Input string.
@return {String}  Trimmed string.