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

Fix incorrect suffix trimming logic
Merge commit '7149063bfc0d5d0d3d98090be46f0c377ffeb998'