convert equality test to compare stings not numbers