Add NS/DQ flags
Unit tests and isNumeric