```
Text1 = Text(root,height=1,width=15,background='grey')
Text1.pack()
Text1.replace(" ","-")

```

So this is what i tried to do. I need to make all spaces typed in from the user to "-". So instead of "how are you" it should be "how-are-you". I've tried som different ways. i even tried `Text1=Text1.replace(" ","-")`.

Anyone who could help me out here?