ComparisonLogic fix for string > enum conversion