How would I go about replacing characters based on their index value? For example, if I had the
string: "-----", and I wanted to replace the character in the string which had the index value of 2, by 0, how could I do that? Is there a method of some sort?