String.prototype.splice = function (start, count, elems) { var arr = this.split(''); arr.splice.apply(arr, arguments); return arr.join(''); };