Group runtime stats based on first part of string