docs: public static boolean endsWithIgnoreCase(String str, String suffix) {
          if (str == null || suffix == null)
              return false;
  
          int strLength = str.length();
          int suffixLength = suffix.length();
  
          // return false if the string is smaller than the suffix.
          if (strLength < suffixLength)
              return false;
  
          // perform regionMatch with ignorecase
          if (str.regionMatches(true, strLength - suffixLength, suffix, 0, suffixLength))
              return true;
  
          return false;
      }