The lesson here is that a %s does not know where to stop. It will just take the rest of the string. Using the %[^.] will grab a string up to a found period (not including the period).
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5