Fix toupper (and strcasecmp)