String packing