public static boolean startsWithIgnoreCase(String str,String prefix){
  return str != null && prefix != null && str.regionMatches(true,0,prefix,0,prefix.length());
}

public static boolean startsWithIgnoreCase ( String str , String prefix ) { return str != null && prefix != null && str . regionMatches ( true , 0 , prefix , 0 , prefix . length ( ) ) ; }
test if the given string starts with the specified prefix , ignoring upper / lower case .
