STOUGHTON — Racist text messages were sent to six Stoughton High School students as part of a nationwide trend affecting schools in eight states last week, officials announced in a press release.