Use Lines.prototype.sliceString instead of .slice/.toString.