Gravitational waves in a string-like fluid cosmology