code: public boolean matches(String seq) {
          return queue.regionMatches(true, pos, seq, 0, seq.length());
      }
docs: Tests if the next characters on the queue match the sequence. Case insensitive.
  @param seq String to check queue for.
  @return true if the next characters match.