parse port number as integer value