replaced line[0] with line.startswith()

issue #33