Added compression for string stream