onkeyup event
do not remove empty lines