pub fn truncate<T>(s: T, len: usize) -> Result<String, Error>where T: Display,
Limit string length, appends ‘…’ if truncated