string() is a fine replacement for character()
Use digit() for digit strings only, and dispose of the numeric version