Fixed an exception being thrown when trying to compare a class to a string.