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