# Pastebin NIE0GGvB // Capitalize the word at the current position insertWordsAtIndex(index, w) { var part1 = this._w.slice(0, index); var part2 = this._w.slice(index, this._w.length); this._w = part1.concat(w).concat(part2); this._l = this._w.length; } // Capitalize the word at the current position capitalizeCurrentWord() { var w; if ((w = this.getCurrentWord()) != null) { var o = utils.titleString(gc, w); if (w != o) { this.updateCurrentWord(o); } return o; } return null; }