I use GZIPOutputStream or ZIPOutputStream to compress a String (my string.length() is less than 20), but the compressed result is long
GZIPOutputStream
ZIPOutputStream
string.length()
Huffman Coding might help, but only if you have a lot of frequent characters in your small String