Fixed #455. Use case-insensitive check to support multiple dialects