Friction doesn't just come from air, it comes from two sources.
- Drag in the air, which makes heat as well as the sound
- Friction in the string itself
For the vibration to work in the first place, the string must be stretchable. As it is stretched, the tension increases. When it vibrates in standing waves it oscillates between a high tension, no velocity state to a low tension, high velocity state.
Although the system looks different, we can treat this fairly similarly to a normal dampened harmonic oscillator system. You can say the string starts stretched to some length, $l_o$ and tension $F_o$. It is not uncommon to treat this system with a drag force proportional to "velocity", although I would suggest a superficial definition of velocity in this case, which is the rate of contraction or elongation of the string over time.
$$F = F_0 - k (l-l_o) - c \frac{dl}{dt}$$
This equation, however, is not a complete differential equation. This is because I'm using it in an analogous form to a mass on a spring, and what to use in place of the mass is non-obvious. I won't go into that because I'm not sure how much detail is wanted.
Basically, the energy is still dissipated as heat in the string. The heat is stored there unless it radiates out. The string will eventually stop oscillating, although it will last longer than if it were in air. Obviously, no music is produced unless you consider the vibrations in the structures of the violin and whatever else it's touching music