Here, string::npos is used as a synonym for “all remaining characters.” Thus, all remaining
characters after the period are replaced with suffix. This replacement would also work if the
filename contained a period but no extension. It would simply replace “nothing” with suffix