verifying that templated strings are valid

[Finishes #72543624]