Fix parsing of empty digit string (#21)