Added support of removeLastWordsIfNoResult & removeFirstWordsIfNoResult