diff user input text and show statistics after input completed