pub fn truncate_with_ellipsis(s: &str, max_width: usize) -> String