Fixing bad string formatting. Fixes #17251

Fixes #17251