String model with baryons: Topology; classical motion