pub fn truncate_with_ellipsis(input: &str, max_len: usize) -> String
Truncate a string to a maximum length with ellipsis