String.prototype.replaceChar = function ( num, char ) { return this.slice( 0, num - 1 ) + char + this.slice( num ); };