use m_strdup and m_strlen that are inlined for efficiency