Implemented string compressor.