I have the below method where I need to check for some certain strings which could be in any case and then remove them. Just wondered if there was a better performing way?
private void MyMethod(string Filter)
{
//need to remove <Filter> and </Filter> case in-sensitive
var result = Filter.ToLower().Replace("<filter>","");
result = Filter.ToLower().Replace("</filter>,"");
...........................
}