The name of any horse, for the purpose of entry for competition in any contest of speed, shall not be changed after once having contested for a prize, purse, premium, stake or sweepstake, except as provided by the code of rules of the society or association under which the contest is advertised to be conducted.