function extractFirstWord( str ) {
	var pos = str.indexOf( ' ' );
	if ( pos === -1 ) {
		return str;
	}
	return str.substr( 0, pos );
}
Extracts the first word in a string.

@private
@param {string} str - input string
@returns {string} first word