Add tests to verify '\s' can be used to represent leading or trailing spaces in patterns.