Remove sub string from a string
<p>I have a string </p>

<p>str="234,555,456,222,666,"</p>

<p>Please don't use regular expressions...
If I remove any value then the final result of string should seperated values with ','.</p>

<p>1) First/any where in the middle value in String then I have to remove "value and , "
    Example  234  --> 234,
     2) If its last value in the string then I have to remove ", and value and , "</p>

<p>For Example
If I want to remove 456 then 
   So the final string like
                str="234,555,222,666"</p>

<p>Thnx </p>
