def string_replace():
ent = input("Enter string:")
rep = input("replace:")
repw = input("replace with:")
if rep in ent:
result= ent.replace()
messagebox.showinfo("Replace",f"String has replced {rep} with {result}")
else:
messagebox.showerror("Error",f"String Does not contain {rep}")
so what im tryin to do is check ent to see if rep is present the replace rep with repw