I have replace the words like "a an the " in the given string to the empty space.. this to be in csharp web application
if given string has "c# corner is a very informative site" then result shuld be " c# corner informative site" ,it has to remove is ,a,very words from the given sentences...
String comparison and replacement
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

CrishRank #1,486 · 1.1K reputationPosted Nov 12, 2010, 4:05 AM EST
use "xyz".Replace() for your solution
Madhu KRank #1,514 · 1.1K reputationPosted Nov 14, 2010, 8:44 PM EST
// characters that need to replaced.
string[] BadCharacters = { "is ", "a " };
string strReplaced = "";
for (i = 0; i < BadCharacters.Length; i++)
{
if (str1.Contains(BadCharacters[i]))
{
strReplaced = str1.Replace(BadCharacters[i], "");
}
str1 = strReplaced;
}
Response.Write(strReplaced);
Hope this helps you.