lib/str.js
function prune(str, max, nice, suf) {
  max = max || 140
  nice = _.isBoolean(nice) ? nice : false
  if (!str || max <= 0 || str.length <= max) return str
  suf = suf || "..."
  str = str.substr(0, max)
  return nice ? str.substr(0, Math.min(str.length, str.lastIndexOf(" "))) + suf : str
}
function prune(str, max, nice, suf) {
  max = max || 140
  nice = _.isBoolean(nice) ? nice : false
  if (!str || max <= 0 || str.length <= max) return str
  suf = suf || "..."
  str = str.substr(0, max)
  return nice ? str.substr(0, Math.min(str.length, str.lastIndexOf(" "))) + suf : str
}
trims end of string, can trimmed back to next clean word, or add suffix to end of trimmed string