docs: public static String format(String pattern, Object... arguments) {
          String msg = pattern;
          if (arguments != null) {
              for (int index = 0; index < arguments.length; index++) {
                  msg = msg.replaceAll("\\{" + (index + 1) + "\\}", String.valueOf(arguments[index]));
              }
          }
          return msg;
      }