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