Use String.prototype.replace() now.