Revert "moving separate gsub methods to be private methods"

This reverts commit fd35f57426707b0c9752fd620145cc9081c57720.