Change ports to int if they are numbers