Trim In String In Python Definition Function