Update script to skip empty lines in input file

Previously the script would fail if an input file included empty lines.
This has been fixed by only parsing lines that contain characters other
than whitespace.