Allow text values in JCAMP files which aren't surrounded by angle
brackets. Remove angle brackets only if they indeed surround the value.
Try parsing the value to numerical types, and return a string if parsing
fails.
Although I didn't read the JCAMP specification, a quick look at JCAMP for NMR (1993), Example 4 makes me believe that the angle brackets are not required for text values.
Allow text values in JCAMP files which aren't surrounded by angle brackets. Remove angle brackets only if they indeed surround the value. Try parsing the value to numerical types, and return a string if parsing fails.
Although I didn't read the JCAMP specification, a quick look at JCAMP for NMR (1993), Example 4 makes me believe that the angle brackets are not required for text values.