Maybe you want to use http://www.tutorialspoint.com/python/string_replace.htm ?

Also you can access a portion of a string via string indexing, like my_string[0:1] w/o having to do a for loop.