Preprocess Text Function Python Syntax For User