Remove Trailing From Python String Length Functions