結果 : how to replace a word in a string without using replace method in python