public boolean forwardIfCurrent(String str){
  boolean is=isCurrent(str);
  if (is)   pos+=str.length();
  return is;
}

public boolean forwardIfCurrent ( String str ) { boolean is = isCurrent ( str ) ; if ( is ) pos += str . length ( ) ; return is ; }
forwards if the current character ( internal pointer ) and the following are the same as the given input
