Good try here.  A problem is that your code works only for one character long replacements.  If you'd used the 'split' method you'd end up with a list of characters that you could just insert the new string in between.