fn normalize_whitespace(str: &str) -> String