don't try to call toUpperCase() on undefined