Case insensitive comparison between query and result, to avoid false errors