Remove Trailing From Python String Manipulation Methods