docs: public static String truncate(String string, int maxBytesLength,
              String appendString) {
          return string.getBytes().length > maxBytesLength ? truncate(string,
                  maxBytesLength - appendString.getBytes().length) + appendString
                  : string;
      }