String-Driven Inflationary and Deflationary Cosmological Models