Basic string compression algorithm I designed