Javascript String addTagAt(index, tagBegin, tagEnd, size)
String.prototype.addTagAt = function(index, tagBegin, tagEnd, size){ return this.substr(0, index) + tagBegin + this.substr(index, size) + tagEnd + this.substr(index + size); }