Change constraint structure: String -> Hash