rename test_number to is_number
remove trailing spaces
enforce a delay on vt100 input