modified strcmp to return only 1 or 0