chore: simplifying `isDigit(...)`
chore: formatting

 * Used `gofmt` for this.
 * No logic modified.