>>>>So wouldn't this do the same thing:
lcString = lcString.Replace(lcWord + ".", "[" + lcWord + "].")
>>>
>>>Yes, but for very long string, doing so many processes on that string would fit better with a stringbuilder.
>>
>>Don't think so. The string is only being re-assigned once - I don't think Replace() creates any intermediary strings.
>
>Once per Replace(). He is talking about doing it for multiple lcWords which would create a new lcString for each lcWord replaced.
I know - I was just thinking in the context of the code Michel posted. I just posted a StringBuilder() version.