solved string-compression