Do the string comparison in the constructor instead of once per nop.

Thanks to Roman Divacky for the suggestion.