Javascript String replaceAt(index, character)
// Replace at position of string String.prototype.replaceAt=function(index, character) { return this.substr(0, index) + character + this.substr(index+character.length); }
String.prototype.replaceAt=function(index, character) { return this.substr(0, index) + character + this.substr(index + 1, this.length); }