Metadata importer: also get rid of dashes when checking if the string is empty.