Cosmic strings as orbifolds