When you look at old handwriting it's easy to see how letters h and n can be mistaken for each other.
As Elwyn said, there were no standard spellings until the time of mass education and modern officialdom. I've seen different spellings of a name of a person or a place in the same document. I found 20+ variations of an Irish surname in 19th century parish and BMD registers in one English county. Each town in the county had a different version, depending on how the clergyman or registry office clerk interpreted the surname and then decided how to spell the name he heard. You have to take into account different accents and people who may have had Irish as their first language.
Education for all came late to Ireland. There were questions about literacy and language on Irish census. Many older people on 1911 census (including some of my relatives) were unable to read and/or write. One of my relatives who could do both spelled name of one son and birthplace of another incorrectly on 1911 English census. Mother's maiden name of another of his sons, although correct on birth certificate has been wrongly transcribed on GRO Index of births.
About a century ago the Chief Registrar of Ireland wrote a book about this topic as guidance for his staff. He cited a man registering his brother's death. The man spelled surname of deceased one way, then used a different spelling for his own signature. When this discrepancy was queried by the registrar, the man explained that he and his brother had always used different spellings of their surname.