Fixed a string comparison.

The reference comparison of the two strings may work in some situations because of string pooling, but I don't think that's how it was intended.