flush input stream on undefined word