Handle empty lines in the file and comments