code: public static boolean startsWithIgnoreCase(String str, String prefix) {
          if (str == null || prefix == null) {
              return false;
          }
          if (str.startsWith(prefix)) {
              return true;
          }
          if (str.length() < prefix.length()) {
              return false;
          }
          String lcStr = str.substring(0, prefix.length()).toLowerCase();
          String lcPrefix = prefix.toLowerCase();
          return lcStr.equals(lcPrefix);
      }
docs: Test if the given String starts with the specified prefix,
  ignoring upper/lower case.
  @param str the String to check
  @param prefix the prefix to look for
  @see java.lang.String#startsWith