Handle count = 0 in CompareStringHelper