modify how to substring to find switch and port in add queues script