Remove Trailing From Python String Functions And Methods