gh-77171: Fixes SubFormat check to compare the entire value. Add docs (GH-97509)

3 files changed