support isdigit()
Merge pull request #7 from pustovalov/osx-fix

support isdigit()