C# Stripping / converting one or more characters
Is there a fast way (without having to explicitly looping through each character in a string) and either stripping or keeping it. In Visual FoxPro, there is a function CHRTRAN() that does it great. Its on a 1:1 character replacement, but if no character in the alternate position, its stripped from the final string. Ex CHRTRAN( "This will be a test", "it", "X" ) will return "ThXs wXll be a es" Notice the original "i" is converted to "X", and lower case "t" is stripped out. I looked at the replace for similar intent, but did not see an option to replace with nothing. I'm looking to make some