No need for g.nstrcmp; just use !g.strcmp instead.