remove trailing spaces, and get flow list for each GenParticle