Minor refactoring

Changing to `x.isalnum()`