pub fn whitespace_collapse(s: &str) -> String
Helper method to collapse whitespaces in a string value.