Add solution to split a given string by known words.