Made the word separator a generator