use strict equality checks for numbers and strings

I've added strict equality/inequality checks to variables compared to number or string literals. This should help increase the speed.