public boolean startsWith(CharSeq prefix){
  return str.startsWith(prefix.str);
}

public boolean startsWith ( CharSeq prefix ) { return str . startsWith ( prefix . str ) ; }
tests whether this charseq starts with the specified prefix
