Replace string substitution with string formatting.
Fix anomalous back slash.
Use proper variable names for the exceptions.
Merge pull request #12148 from s0undt3ch/hotfix/jenkins

Several Lint Fixes