Sam Hu Wrote: > Hi Sivo & John, > > Thank you very much!!!The two versions all work. > > But I am a bit confused with the key word *in* in both versions. It's simple, really. Strings are immutable in D2. And "in" is equivalent to "immutable". By the way, best to use wstring (for UTF-16) or string (for UTF-8) in your parameter declarations.