function stringTrimLeft(str) {
  return str.replace(/^\s+/, "");
}
Trim whitespace from beginning of string.

@see testStringTrimLeft();

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