diff --git a/pyfstat/core.py b/pyfstat/core.py
index cdb23de115bd74932001e73c190567f0c5adc497..bf1f780a11d7e02e13992cef714b802e8daa25da 100755
--- a/pyfstat/core.py
+++ b/pyfstat/core.py
@@ -120,10 +120,14 @@ def _get_dictionary_from_lines(lines, comments, raise_error):
             try:
                 key, val = line.rstrip('\n').split('=')
                 key = key.strip()
-                try:
-                    d[key] = np.float64(eval(val.rstrip('; ')))
-                except NameError:
-                    d[key] = val.rstrip('; ')
+                val = val.strip()
+                if (val[0] in ["'", '"']) and (val[-1] in ["'", '"']):
+                    d[key] = val.lstrip('"').lstrip("'").rstrip('"').rstrip("'")
+                else:
+                    try:
+                        d[key] = np.float64(eval(val.rstrip('; ')))
+                    except NameError:
+                        d[key] = val.rstrip('; ')
             except SyntaxError:
                 if raise_error:
                     raise IOError('Line {} not understood'.format(line))