I used replace keyword to replace string or char, and i can replace successfully here is my code
string keywoord = "Emerika";
var result = keywoord.Replace(keywoord[0], 'A');
the result : Amerika
but i get strange behaviour when replace thing and the next thing is same
string keywoord = "xxxxx";
var result = keywoord.Replace(keywoord[0], 'A');
I will get result : AAAAA
It should return Axxxx
string keywoord = "aaakaaa";
var result = keywoord.Replace(keywoord[0], 'z');
I will get result : zzzkzzz
It should return zaakaaa
so what happened with this, i just need to replace one thing not multiple thing, any error or do u have another solution?