int findEndText(String source,int ofs){
  for (int i=ofs; i < source.length(); i++) {
    if (isAlpha(source.charAt(i)) == false && isNumeric(source.charAt(i)) == false) {
      return i;
    }
  }
  return -1;
}

int findEndText ( String source , int ofs ) { for ( int i = ofs ; i < source . length ( ) ; i ++ ) { if ( isAlpha ( source . charAt ( i ) ) == false && isNumeric ( source . charAt ( i ) ) == false ) { return i ; } } return - 1 ; }
attempt to find the end of a field if the length is not known .
