Strings and the Gauge Theory of Spacetime Defects