How do I replace a space for a different character?



Hi, I have a string like

"This is a test",

how do I check that string and replace all spaces with a different
character, like a dash (-), so it displays

"This-is-a-test"

Thank you kindly. Matt

.



Relevant Pages