String theory in magnetic monopole backgrounds