Rewrite DecodeString