Fixing str() comparison defect.