Clean up messy strings by trimming ends and replacing runs of whitespace with a single space.
Constraints
Example
```python
>>> clean_whitespace(" Hello world! ")
'Hello world!'
>>> clean_whitespace("a\t\nb\n\n c")
'a b c'
>>> clean_whitespace(" ")
''
>>> clean_whitespace("")
''
```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints