Minor fixes in strings handling
- Access std::string::npos without an instance
- Remove unnecessary npos specification as second argument to function
std::string::substr
(2nd argument already has default valuenpos
)
This MR is related to the following MR in the main CMake repo: cmake/cmake!905 (merged)
Topic-rename: string-npos-cleanup