Trim Function In String Python Definition