replace = function (findWhat, replaceWith) { if (findWhat != undefined and findWhat != "") { this = (this.split (findWhat)).join (replaceWith); } return this; };