check if the string str contains only letters and numbers
str
bool isAlphaNumeric(String str) { return alphaNumericReg.hasMatch(str); }