string str1 = \"12345ABC...\\\\...ABC100000\"; // Hypothetically huge string of 100000 + Unicode Chars str1 = str1.Replace(\"1\", string.Empty); str1 = str1.Rep
if you want a built in class in dotnet i think StringBuilder is the best. to make it manully you can use unsafe code with char* and iterate through your string and replace based on your criteria