Separate alphanumeric character logic