public static int findFirstNonCellNamePosition ( String input , int startPosition ) { char c ; for ( int i = startPosition ; i < input . length ( ) ; i ++ ) { c = input . charAt ( i ) ; if ( c != ' ' && ! Character . isLetterOrDigit ( c ) ) { return i ; } } return - 1 ; // not found }
find first non letterordigit position from string .