Fix case that input is '0'

If input is only string '0', then loop condition is false and
loop body is not evaluated. This loop should test whether `$_`
is empty string, not `$_` is false.
Merge pull request #113 from syohex/fix-input-is-0-case

Fix case that input is '0'