#15 remove int casting, because using regex check as int.
Merge pull request #16