The problem with using microphones is that the microphone picks up not only the sound of the vibrating string, but every other sound caused by playing the instrument such as string noise, bumps and taps, as well as ambient noise from other instruments etc.