Add nullptr check
::strcmp -> std::strcmp