Fix bug when line does not contain leading whitespace