Feature request: extend `pandas.DataFrame.replace`
The following code examples explain this feature request.

The following code works:
```python
df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
df.rename(columns=str.lower)
```
however the following ones do not work:
```python
df.rename(columns=str.upper.str.lower)
```
```python
df.rename(columns=str.upper().str.lower())
```
```python
df.rename(columns=str.strip())
```
```python
df.rename(columns=str.replace("A", "C"))
```