A call string.Replacedoes not change existing rows — rows are immutable.
Instead, it returns a new line with appropriate replacements. However, you are not using the return value, so basically it is non-op.
You need to change the array element itself to refer to another string. Something like that:
newName[newName.Length - 1] = handover;
source
share