diff --git a/src/convert.js b/src/convert.js
index <HASH>..<HASH> 100644
--- a/src/convert.js
+++ b/src/convert.js
@@ -167,11 +167,11 @@ export default function convert(jcamp, options = {}) {
       currentEntry.title = dataValue;
     } else if (canonicDataLabel === 'DATATYPE') {
       currentEntry.dataType = dataValue;
-      if (dataValue.toLowerCase().indexOf('nd') > -1) {
+      if (dataValue.match(/(^nd|\snd\s)/i)) {
         currentEntry.twoD = true;
       }
     } else if (canonicDataLabel === 'NTUPLES') {
-      if (dataValue.toLowerCase().indexOf('nd') > -1) {
+      if (dataValue.match(/(^nd|\snd\s)/i)) {
         currentEntry.twoD = true;
       }
     } else if (canonicDataLabel === 'DATACLASS') {
fix: more selective to generate 2D