
// If there, remove white space from both ends of a string
function trim(textInput){
	
	// REMOVE WHITE SPACE FROM BEGINNING OF STRING
	textInput.value = textInput.value.replace(new RegExp(/^\s+/),"");
	// REMOVE WHITE SPACE FROM END OF STRING
	textInput.value = textInput.value.replace(new RegExp(/\s+$/),"");
}

/*Note:  In the context of regular expressions the term 'white space' includes any non-printing character, that is any character you cannot see. Examples include blank spaces, carriage returns, line feeds, tab characters, etc*/
