algo4: strmanip: Substring with concatenation of all words