(a) Notwithstanding any other general law, or special act, or municipal charter to the contrary, no write-in candidate in a primary election for a position as a county or municipal official shall have such candidate’s name placed upon the ballot in the election for such position unless such candidate received not less than twenty-five (25) votes.
(b) If a candidate is nominated as prescribed in subsection (a) by write-in votes, such a nominated candidate may withdraw from the nomination by filing a letter of withdrawal with the county election commission not later than ten (10) days after the primary election wherein such candidate was nominated.