code: private static boolean startsWith(String str, String... prefixes) {
          for (String prefix : prefixes) {
              if (str.startsWith(prefix)) return true;
          }
          return false;
      }
docs: Checks if the given string starts with any of the given prefixes.
  
  @param str
  String to check for prefix.
  
  @param prefixes
  Potential prefixes of the string.
  
  @return True if the string starts with any of the prefixes.