String.prototype.replaceCharAt = function(n,c){return this.substr(0, n)+ c + this.substr(n+1,this.length-1-n);}