Function trim_whitespace_make_uppercase

Source
fn trim_whitespace_make_uppercase(s: &str) -> String
Expand description

Robustify string (slice) matching by trimming out all of the whitespace

Use it like this:

match trim_whitespace_make_uppercase(slice_to_compare).as_str() {
“THING” => do_thing,
“” => (),
_ => (),
}