The application to change the name or to correct an error in a birth certificate shall be by petition, in writing, signed by the applicant and verified by affidavit, stating that the applicant is a resident of the county, and giving the applicant's reasons for desiring the change or correction.