Text compressor