>>>Hi,
>>>
>>>I have a string like this:
>>>
>>>"LastName, FirstName, MiddleName"
>>>
>>>and sometimes it could just be this:
>>>
>>>"CompanyName"
>>>
>>>I want to add a string into these strings so they end up like this:
>>>
>>>"LastName DESC, FirstName DESC, MiddleName DESC"
>>>
>>>or:
>>>
>>>"CompanyName DESC"
>>>
>>>How would I do this in C#?
>>
>>Basically this
>>
>> string s = "LastName, FirstName, MiddleName";
>>
>> s = s.Replace(",", " DESC,") + " DESC";
>>
>
>I don't think that works in the case of "CompanyName"
But you didn't test it ... - Sure it works
Gregory