You can use a single [`str.strip`](http://docs.python.org/2/library/stdtypes.html#str.strip) call, it allows stripping multiple characters:

```python
>>> "+-foo+-".strip("+-")
'foo'
```