Port adding fix

Fixed issues with adding ports that have a space, thus adding a blank
port