pub fn shorten_string(s: &str) -> String { if s.len() > 80 { format!("{}...", &s[..80]) } else { s.to_string() } }