Added options for hex, digits, and char only