Pretty sure you can use `.isdigit()` here.