Node.js examples for String:Trim
Trim string from both side
String.prototype.trim = function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); };