Well done to those man enough to admit to these mistakes in the past
I too said some terrible words. I was at my first job and in that environment, everybody was using those words, so I joined in. I also repeated some jokes which were racist and homophobic.
The lesson which comes out of this...