interpret ports as a String