Trim Function In String Python Definition Syntax Error