using strcasecmp for string comparison