Greatly simplify nwchem string parser.