------
## 最终结论
```python
import re

def remove_whitespaces(s):
    return re.sub(r'\s+', '', s)

# Test cases
assert remove_whitespaces(' Google    Flutter ') == 'GoogleFlutter'
assert remove_whitespaces(' Google    Dart ') == 'GoogleDart'
assert remove_whitespaces(' iOS    Swift ') == 'iOSSwift'
```