Change str hash/equal generic form