Imprints of cosmic strings on the cosmological gravitational wave background