Changed to use strcasecmp()