Handles ports and slashes