Fix for port identification: ports are strings not numbers.

Jira issue: WP-959