How do you avoid strep throat?

Avoid. If you know someone has strep, avoidance is best , followed by good hygiene, such as good handwashing and keeping your distance.
Wash hands. You can't always prevent throat infections. Avoid contact with a known carrier or someone who is infected and wash your hands, wash your hands, wash your hands.