docs: public static String logString(final String string) {
          if (string == null || string.length() == 0) {
              return string;
          }
  
          String ret = string.replaceAll("[^\\p{Print}]", "?");
  
          ret = ret.substring(0, Math.min(ret.length(), MAX_LOG_STRING_LENGTH)) + (ret.length() > MAX_LOG_STRING_LENGTH ? "..." : "");
  
          return ret;
  
      }