detect hive case insensitively