pub fn collapse_whitespace(text: &str) -> Cow<'_, str>
Replaces multiple consecutive whitespace characters with a single space character.