You need to reinstall MCreator and avoid using invalid names in MCreator including files you import from your computer. Valid names are those which only contain EN alphabet characters and numbers. This only happens with MCreators under 1.7.0 as from this verison, the bug was fixed.