Fixed bug with exclude ports parameter - it can be a number so convert to string