STS-2979 fix pushed to remove trailing and leading white spaces when
pasting URL in server wizard