research thesis text pre-processing