Change to string enum pattern when initializing Compressor/Decompressor