Ensured nwapi::Tray::TrimString() returned a null-terminated string