preprocess text, needs to be implemented