trim and stopwords