pattern = re.compile(r'(' + r'|'.join(stopwords.words('english')) + r')s*') text = pattern.sub('', "eswar and co and the smartext kid")