code: private String limitStringLength(String str) {
      if (str.length() > MAX_STRING_LENGTH) {
        str = str.substring(0, MAX_STRING_LENGTH) + " ..."; 
      }
      return str;
    }
docs: prevents gigantic messages