chat text parsing example