python how can string .replace() only calc the new value if the old value is found in the string

welcome to shbcf.ru