Perform string comparison for field type