Fix win32 cmd for retrieving phantom port

The original cmd didn't return any results (there is a white character after the port).