text parsing on console