code: function (str, inside) {
  		if (typeof str === 'string') {
  			str = str.replace(/^\s+|\s+$/g, '');
  
  			// Clear white space insdie the string, like thousands separators
  			if (inside && /^[0-9\s]+$/.test(str)) { 
  				str = str.replace(/\s/g, '');
  			}
  
  			if (this.decimalRegex) {
  				str = str.replace(this.decimalRegex, '$1.$2');
  			}
  		}
  		return str;
  	}
docs: Trim a string from whitespace