public boolean matches(String seq){
  return queue.regionMatches(true,pos,seq,0,seq.length());
}

public boolean matches ( String seq ) { return queue . regionMatches ( true , pos , seq , 0 , seq . length ( ) ) ; }
tests if the next characters on the queue match the sequence . case insensitive .
