textProcess implementation

a start of textProcess, edge cases need work