Using toString to compare hints