pub fn normalize_input(input: &str) -> String
Normalize input by trimming and collapsing internal whitespace.