fn normalize_whitespace(s: &str) -> String
Normalize whitespace: collapse runs of whitespace (including newlines) into single spaces, then trim.