Remove the illegal space from the network names.