standardize calling of cstrcasecmp for future optimization