Prevents the use of a space when adding ports.

Prevents use of a space and trailing commas no longer effect anything.