You decode what you want to fold up into, into a sequence of angles — so negative 120, negative 120, 0, 0, 120, negative 120 — something like that; so a sequence of angles, or turns, and you send that sequence through the string.