Python Strip txt

>>> text
'132abcd13232111'

>>> text.strip('123')
'abcd'
Odd Osprey