Bugfixes for prior changeset, RE:Strip errors generated from legacy variable names in .ctp files

*Details*
* Found bugs during code review, not common to actaully come up in our expected use cases
* Reduce by actual counts
* Actually replace string in results for summary