public static boolean startsWithIgnoreCaseAndWs(String searchIn,String searchFor,int beginPos){
  if (searchIn == null) {
    return searchFor == null;
  }
  int inLength=searchIn.length();
  for (; beginPos < inLength; beginPos++) {
    if (!Character.isWhitespace(searchIn.charAt(beginPos))) {
      break;
    }
  }
  return startsWithIgnoreCase(searchIn,beginPos,searchFor);
}

public static boolean startsWithIgnoreCaseAndWs ( String searchIn , String searchFor , int beginPos ) { if ( searchIn == null ) { return searchFor == null ; } int inLength = searchIn . length ( ) ; for ( ; beginPos < inLength ; beginPos ++ ) { if ( ! Character . isWhitespace ( searchIn . charAt ( beginPos ) ) ) { break ; } } return startsWithIgnoreCase ( searchIn , beginPos , searchFor ) ; }
determines whether or not the string ' searchin ' contains the string ' searchfor ' , disregarding case and leading whitespace
