post from before election
The statute is on the thread.
It says ‘as it appears on the filing..or...the last name of the candidate’
It makes no mention of spelling, or exactitude but given the nature of a write in ballot, it is only logical to presume absent other direction that a discernable last name, is a vote.