modify equals() to compare string values