microformat-shiv.js
function( text ) {
			if(text && this.isString(text)){
				return (text.trim())? text.trim() : text.replace(/^\s+|\s+$/g, '');
			}else{
				return '';
			}
		}
function( text ) {
			if(text && this.isString(text)){
				return (text.trim())? text.trim() : text.replace(/^\s+|\s+$/g, '');
			}else{
				return '';
			}
		}
function ( text ) { if ( text && this . isString ( text ) ) { return ( text . trim ( ) ) ? text . trim ( ) : text . replace ( / ^\s+|\s+$ / g , '' ) ; } else { return '' ; } }
removes spaces at front and back of text

@param  {String} text
@return {String}
removes spaces at front and back of text