String.prototype.normalize = function(){
	return this.replace(/\s+/g, " ");
};

String.prototype.trim=function(){
    return this.replace(/^\s*|\s*$/g,'');
}