PEP 616 – String methods to remove prefixes and... | peps.python.org
Motivating examples from the Python standard library. The examples below demonstrate how the proposed methods can make code one or more of the following“Trim” does in other languages (e.g. JavaScript, Java, Go, PHP) what strip methods do in Python. lstrip(string=...)