When the string is released from its triangular shape (plucked nearer one end than the other - not in the middle), the spectrum of waves on the string will correspond to the normal modes of oscillation (standing waves that will sustain themselves) on the string . The spectrum of those modes (amplitude and phase) is given by the Discrete Fourier transform of the starting shape. For an ideal string, these modes correspond to odd harmonics of the fundamental mode of oscillation of the string (one antinode in the middle).
You can look upon these modes as pairs of waves, traveling in each direction, all of which will add together to produce the original triangle and another triangle shape, reflected in the other end and upside down.
If you pluck / displace the string fast enough, the shape doesn't have to be a triangle. Many of the diagrams that you can find will be a single short pulse that's launched in just one direction but that's actually hard to achieve because a wave will go in both directions from the start position.
See this link for an animation plus a number of useful ideas.