if u want to replace ur string character from s to t u can do this:
name = "yash"
var = name.replace("s","t")
print(var)
name = "yash, reyansh, sharma"
var = name.replace(",","\n")
print(var)
if u want to replace ur string character from s to t u can do this: