remove extra whitespace
ports should return empty list instead of None if no info