When I was a high school student I was pulled into the office because they claimed my hair exceeded two inches. I knew it didn't and asked them to measure. They did and I was correct even as they yanked at it to the point it caused pain.
In spite of being a good student and nothing on the records indicating trouble, in spite of not breaking the hair code as written, I was told to get it cut or be suspended. The argument was my hair was unkempt and that appearance incites trouble. It was a prejudice and stereotyping that would be difficult to pull off today.
When I went to college I didn't have those restraints. One day my next door neighbor challenged me to see who could grow the biggest afro. At Christmas break she comes over to my house, I answered the door and watched her joyful face deflate. She conceded but not before letting me know it wasn't fair a white dude could have the biggest afro.
Now I'm approaching 70, my hair is short, gray and missing in places. And I'm still getting stereotyped.