diff --git a/src/MetadataExporter.cpp b/src/MetadataExporter.cpp
index fd13ab425b0bba8e2255e39236fda449cb288b5c..fbd27d036afb51883e56af35b25148e96fa86b6d 100644
--- a/src/MetadataExporter.cpp
+++ b/src/MetadataExporter.cpp
@@ -591,7 +591,7 @@ void MetadataExporter::importExportedTables(std::vector<std::string>& exportedTa
     {
         std::size_t found;
 
-        if((found=exportedTables.at(i).find(' ')) == std::string::npos)
+        if((found=exportedTables.at(i).find(',')) == std::string::npos)
         {
             std::stringstream errorStream;
             errorStream << "ExportedTables property has invalid key at "
@@ -639,7 +639,7 @@ void MetadataExporter::importAuthorisedUsers(std::vector<std::string>& authorise
     {
         std::size_t found;
 
-        if((found=authorisedUsers.at(i).find(' ')) == std::string::npos)
+        if((found=authorisedUsers.at(i).find(',')) == std::string::npos)
         {
             std::stringstream errorStream;
             errorStream << "AuthorisedUsers property has invalid key at "