function capitalize(str) {
    if (isNullOrWhitespace(str)) {
      return str;
    }

    return str.toLowerCase().replace(/\b\w/g, function (s) {
      return s.toUpperCase();
    });
  }
/**
   * Capitalizes all words in a sequence
   * @param {string} str Sequence
   * @returns {string} Capitalized sequence
   * @memberof STD
   */
Capitalizes all words in a sequence
@param {string} str Sequence
@returns {string} Capitalized sequence
@memberof STD
Capitalizes all words in a sequence @param { string } str Sequence @returns { string } Capitalized sequence @memberof STD
function capitalize(str) {
    if (isNullOrWhitespace(str)) {
      return str;
    }
    return str.toLowerCase().replace(/\b\w/g, function (s) {
      return s.toUpperCase();
    });
  }
function capitalize ( str ) { if ( isNullOrWhitespace ( str ) ) { return str ; } return str . toLowerCase ( ) . replace ( / \b\w / g , function ( s ) { return s . toUpperCase ( ) ; } ) ; }
Capitalizes all words in a sequence
 @param {string} str Sequence
 @returns {string} Capitalized sequence
 @memberof STD
Capitalizes all words in a sequence @param { string } str Sequence @returns { string } Capitalized sequence @memberof STD