Collisionless and Decentralized Formation Control for Strings