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