divideIntoFields function

Divide text into fields