function capitalize( str ) {
	if ( str === '' ) {
		return '';
	}
	return str.charAt( 0 ).toUpperCase() + str.slice( 1 );
}
Capitalizes the first character in a string.

@param {string} str - input string
@returns {string} capitalized string

@example
var out = capitalize( 'last man standing' );
// returns 'Last man standing'

@example
var out = capitalize( 'presidential election' );
// returns 'Presidential election'

@example
var out = capitalize( 'javaScript' );
// returns 'JavaScript'

@example
var out = capitalize( 'Hidden Treasures' );
// returns 'Hidden Treasures'