string compression problem