Switch string comparison for NaN for native isNaN()