added substring concatenation of all words.