String order and adiabatic continuity of Haldane chains and band insulators