Convert rows of text to rows of words