pub fn trim_str(target: &impl AsRef<str>, maxlen: usize) -> impl Display + '_