Fix issue when using the connect dialogue

Apparently, when I added a fix to split this string on whitespace
OR commas, this code changed such that half of the strings are
empty strings.