Replace a != by a ! equals()