code: public static String abbreviate(String str, int max) {
  		return StringUtils.isBlank(str) ? "" : StringUtils.abbreviate(str, max);
  	}
docs: Abbreviates a string.
  @param str a string
  @param max max length
  @return a substring of that string