How to get the serial monitor to only show a specific part of what it outputs?

If you gather the data at the right time you will not need trim.
Having just one big array and trimming it down would use too much memory.