API to preprocess the tweet