string data is compressed before pushing to buffer