handle input texts.