You make sure there is lots of room for growth on the end where the plant is.
And the other end, I either tie it to a round stick (wooden dowel, whatever works) placed in the pot, or like some I have I tyed it to a spike and archored it out side the pot.
Whatever works.... some make cuts in their pots and just slide the string into it; it is looped around the plant.