Preprocess Text Function Python Questions On String