how to find a string in a sentence and replace it in python code example Example: python replace string string.replace(old, new, count)