Converting a text string into a URL

hi guys,

I have a text string that i would like to convert into a URL.

The main problem I have is with converting the spaces in between letters into their URL equivilant.

I would greatly appreciate any help with this issue.

Thanks in advance