fixing string equality test bug