specific letter character change c#
Console.WriteLine("============");
Console.WriteLine("Hi there ");
string text = "eeeeeeeeeee";
Console.WriteLine(text);
Console.WriteLine("============");
char[] array = text.ToCharArray();
for (int i = 0; i < array.Length; i++)
{
if (array[i] == 'e')
array[i] = 'E';
}
text = new string(array);
Console.WriteLine("============");
Console.WriteLine("Hi there ");
Console.WriteLine(text);
Console.WriteLine("============");