[#236] Implement string deflation, inflation

* Add helper functions to deflate and inflate a string