(feat) Wrote string compressor function