public static boolean startsWithIgnoreCaseAndNonAlphaNumeric(String searchIn,String searchFor){
  if (searchIn == null) {
    return searchFor == null;
  }
  int beginPos=0;
  int inLength=searchIn.length();
  for (; beginPos < inLength; beginPos++) {
    char c=searchIn.charAt(beginPos);
    if (Character.isLetterOrDigit(c)) {
      break;
    }
  }
  return startsWithIgnoreCase(searchIn,beginPos,searchFor);
}

public static boolean startsWithIgnoreCaseAndNonAlphaNumeric ( String searchIn , String searchFor ) { if ( searchIn == null ) { return searchFor == null ; } int beginPos = 0 ; int inLength = searchIn . length ( ) ; for ( ; beginPos < inLength ; beginPos ++ ) { char c = searchIn . charAt ( beginPos ) ; if ( Character . isLetterOrDigit ( c ) ) { break ; } } return startsWithIgnoreCase ( searchIn , beginPos , searchFor ) ; }
determines whether or not the string ' searchin ' contains the string ' searchfor ' , disregarding case , leading whitespace and non - alphanumeric characters .
