limited space? I hardly knew her!

Ok so my idea is actually pretty basic, you're a data compressor, you have to make a string text be no bigger than the allowed space.

However you must also be able to extract the same text from the compressed data at the end. HOPEFULLY that'll be challenging and fun! :P