Javascript String replaceAt(index, text)
String.prototype.replaceAt = function(index, text){ return this.substr(0, index) + text + this.substr(index + text.length); }