strcasecmp used rather than strcmpi