Added -g flag

Added capability to check for lists of chars with -g flag.