move DupStr and DupStrLen from dbgutil.c to strutil.c