handles_utils::converterFunction trim_and_collapse_whitespace
Source pub fn trim_and_collapse_whitespace(input_str: &str) -> String
Expand description
Trims whitespace from the head and tail and collapses all other whitespace to just a single space
§Arguments
input_str
- A string slice that holds the input string from which the whitespace characters need to be trimmed and collapsed
§Returns
A new string without any Unicode whitespace characters.