discard empty lines and comments before any parsing is attempted