Javascript String setCharAt(index, newValue)
String.prototype.setCharAt = function(index, newValue) { return this.substring(0, index) + newValue + this.substring(index + 1, this.length); };