Herenafter or Hereinafter: How To spell?

The word Herenafter is misspelled against Hereinafter, an adverb meaning "In the following part of this (writing, document, speech, and the like)."

Word contains consecutive vowels 'EI' in between alphabets her & nafter is misspelled as 'E' as letter 'I' is phonetically igno
Wrong Spelling:  her-e-nafter 
Correct Spelling:  her-ei-nafter 
Explore spell check of Hereinafter to spell without errors.