pub fn collapse_whitespace(text: &str) -> String
Collapse runs of whitespace into single spaces and trim.