Javascript String replaceBetween(start, end, what)
String.prototype.replaceBetween = function (start, end, what) { return this.substring(0, start) + what + this.substring(end); };