switched both comparisons in remove_wanted_p to strcasecmp