thanks again for the input however i want to keep a space between the words in the string.....the initial user defined string is garbage, thats why i used the user string in the function...I want to edit it for future use....