edit methods deleteWordsFromText from class TextResolver; add method createRegex