fixed parsing lines that end with whitespace
parse lines starting with dashes