refactor MethodStringifier to avoid gross string munging