String's equals method isn't always enough