Replace runs of whitespace with a single space and strip edges.
Constraints
Example
>>> normalize(" hello world\n")
'hello world'
>>> normalize("a\t\tb")
'a b'
>>> normalize(" ")
''
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints