Student shaves hair to donate to charity