fix error with wildcards in select statement, allow keywords to be case-insensitive