def _trim(self, somestr):
        tmp = RE_LSPACES.sub("", somestr)
        tmp = RE_TSPACES.sub("", tmp)
        return str(tmp)
This function is called on all matching events. Rules use it to add
dataset/ETHPy150Open Yelp/fullerite/src/diamond/collectors/icinga_stats/icinga_stats.py/IcingaStatsCollector._trim--crossover with--dataset/ETHPy150Open Yelp/elastalert/elastalert/ruletypes.py/RuleType.add_match