Complex sentence: The following year, 1876, he was elected judge of the Beaufort County Inferior Court, an office he held until 1882 when he was elected judge of the Superior Court.
Split into simpler sentences: The following year, 1876, he was elected judge of the Beaufort County Inferior Court. In 1882 Shepherd was elected judge of the Superior Court.