Dark Photon Dark Matter from Cosmic Strings and Gravitational Wave Background