Immediately following the closing of the polls, the manager shall:
Before leaving the precinct, each ballot shall be reviewed and, if there appear markings other than by the marking device or there are names of candidates in spaces authorized for write-in votes, such write-in votes shall be tabulated by the precinct officials and the results certified to the counting station. In such instance, the precinct officials shall first determine, for the contest in which a write-in vote has been cast, that the voter on such ballot has not, for such contest, voted contrary to the voting instructions for such contest. If it is determined that the voter has not violated such instructions, write-in votes shall be tabulated and the ballot shall be reinserted with the remainder of the ballots. If it is determined that the voter has violated the instruction for marking the ballot, then the entire ballot shall be tabulated by the precinct officials and the results certified to the counting station, or the county board of voter registration and elections may cause a duplicate to be made of that part of the ballot marked according to such instructions.
Provided, that if it appears that a ballot is so torn, bent, or otherwise defaced or has been marked by other than the marking device, so that it cannot be counted by the automatic tabulating equipment, the county board of voter registration and elections may cause a duplicate of each such ballot to be marked so that it can be so counted.
Such duplicate ballots, when so authorized by the board of voter registration and elections, shall be prepared at the counting station in the presence of witnesses and substituted for the original ballots, which duplicate ballots shall be counted by the automatic tabulating equipment. The original ballots shall be preserved and all such duplicate ballots shall be clearly labeled with the word "duplicate" and shall bear a serial number which shall also be recorded on the original. At the counting station, write-in votes tabulated by the precinct officials shall be added to the results from ballots tabulated with the automatic tabulating equipment and the totals certified as the precinct count on the summary sheet.
S.C. Code § 7-13-1410