Fix error on lines with only whitespace

Closes #7