Non-standard `String.prototype.replace(substr, newSubStr, flags)`

https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Parameters