The name of the molecule in the editor is fetched from the NCI web service
(https://cactus.nci.nih.gov/chemical/structure) after the structure in the editor has changed.
Pasting any chemical structure representation
Paste operation accepts molecule name, Inchi, smiles ... and is using the same service.