use strcasecmp where appropriate

get rid of some stupid strdup()ing.