Python Trim String Length Function Python Parameters