Best exercise to get rid of stringhopping

Copying one of the forms below (find one that works best for you) here is the way to go. You’re looking for a smooth tremolo on one string (at first) to know you motion is efficient (therefore not ‘stringhopping’).