To get a certain line from some text you can use the tokenat() expression:
tokenat(TextBox.text, 0, newline)
The 0 means get the first line, 1 the second, and so on.
Beyond that you could use tokenat again to get individual words if you seperate everything with spaces or something. What that's called is a parser and there are also lots of other ways to do it. You could do a forum search for parser to see various examples to maybe get some ideas.