Added EOF check for whitespace programs.