code: function (str) {
        var index = this.html.indexOf(str, this.currentChar) + str.length;
        if (index === -1)
          this.currentChar = this.html.length;
        this.currentChar = index;
      }
docs: Searches the input until a string is found and discards all input up to
  and including the matched string.