make m_dupstr return NULL if the string was empty.