add `digit()` to stringmaker and add test for it