remove ending/trailing spaces when inserting database strings (e.g.
terms sent by charaparser frequently are space prefixed, as this is what
comes out of perl-learned charaparser DB)