Fix incorrect suffix trimming logic
closes #3159
Merge pull request #3264 from permcody/TestHarness_fix

Fix incorrect suffix trimming logic