Change middle character of a string

You will find all the answers in the String and Bytes module documentation.