Trim team ID when enrolling students #2385

Add trim process when enrolling a student