strj_segment function

Segment text into tokens