handle reset code with integer

* avoid 0 tagging
* can handel with any precision 01, 001, 0001
* handel null entry