code: public String consumeTo(String seq) {
          int offset = queue.indexOf(seq, pos);
          if (offset != -1) {
              String consumed = queue.substring(pos, offset);
              pos += consumed.length();
              return consumed;
          } else {
              return remainder();
          }
      }
docs: Pulls a string off the queue, up to but exclusive of the match sequence, or to the queue running out.
  @param seq String to end on (and not include in return, but leave on queue). <b>Case sensitive.</b>
  @return The matched data consumed from queue.