以下コマンドにて、指定した文字列に完全一致する文字列を置換できる
replace()
・replace() 実行例
test = "tost test tost tost"
#文字列「tost」を「test」へ全て置換
test.replace("tost","test")
'test test test test'
#文字列「tost」を1つ目にマッチする「tost」だけ置換
test = "tost test tost tost"
test.replace("tost","test",1)
'test test tost tost'
#空白を指定することで、削除することも可能
test.replace("tost","")
' test '