handle empty lines
test for empty lines