src/org/tiefaces/components/websheet/utility/ParserUtility.java
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
	}
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
	}
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.

@param input input string
@param startPosition startposition
@return first position
find first non letterordigit position from string .