decoding string