Connect name is valid only when the characters used are printable ASCII characters . Any character outside this is invalid. Some characters are also invisible and thus appear as just extra space. If you are unable to identify why the connect name is invalid, copy paste the connect name from F11->F4 to any online printable ASCII characters checkers like this.
You can resolve this issue by specifying connect name manually instead of copying it from another source.