Given a string. Split the string on a " " (space) delimiter and join using a - hyphen.
Take following parameters: string line: a string of space-separated words
Returns string: the resulting string
The one line contains a string consisting of space separated words.
this is a string
this-is-a-string