Quantum energies of strings in a 2+1 dimensional gauge theory