Moduli from cosmic strings