An equivalence theorem for string solutions of the Einstein matter-gauge equations