The function takes an input string, removes any spaces within the string, and returns the modified string.

[CODE]:
```python
def f(x: str) -> str:
    return x.replace(" ", "")
```