Python Replace Function In String