strip()

Removes the specified set of characters from the left of the source string as long as a match is found.

Example

Python
str = 'You say tomato, I say tomato, the French say tomate.'
print(str.strip('oYu '))

Output

say tomato, I say tomato, the French say tomate.