code: public static String firstLineOnly(String value, int maxCharacters) {
  		if(value==null) return value;
  		int pos = value.indexOf(lineSeparator);
  		if(pos==-1) pos = value.length();
  		if(pos>maxCharacters) pos = maxCharacters;
  		return pos==value.length() ? value : (value.substring(0, pos) + '\u2026');
  	}
docs: Returns the first line only, and only up to the maximum number of characters.  If the
  value is modified, will append a horizontal ellipsis (Unicode 0x2026).