Converted a strncmp to a strncasecmp to avoid a compiler issue