someString[someRandomIdx] = \'g\';
will give me an error.
How do I achieve the above?
Check out this article on how to modify string contents in C#. Strings are immutable so they must be converted into intermediate objects before they can be modified.