Trim trailing whitespace from conn string
add test for parseOpts with a trailing space