ensure device detection works in a case-insensitive manner