fix matches_conditons_hash for string valus on 1.8