[core] Updates main statistics, and adds Exception and Trim to utils.