code: private String excerpt(String str, int maxLength) {
          return str.length() > maxLength ? excerptPattern.matcher(
                  str.substring(0, maxLength)).replaceFirst("&hellip;") : str;
      }
docs: /*
  Returns the string excerpt.