Fix deviceIs() to use proper strings