Correct usage of string.replace()

.replace() returns a new string like the rest of python's string
operations.