string decode implemented