tidy up use of type="nstring"