Section 18. A person so injured shall, within thirty days thereafter, give to the county, city, town or person by law obliged to keep said way in repair, notice of the name and place of residence of the person injured, and the time, place and cause of said injury or damage; and if the said county, city, town or person does not pay the amount thereof, he may recover the same in an action of tort if brought within three years after the date of such injury or damage. Such notice shall not be invalid or insufficient solely by reason of any inaccuracy in stating the name or place of residence of the person injured, or the time, place or cause of the injury, if it is shown that there was no intention to mislead and that the party entitled to notice was not in fact misled thereby. The words “place of residence of the person injured”, as used in this and the two following sections, shall include the street and number, if any, of his residence as well as the name of the city or town thereof. Failure to give such notice for such injury or damage sustained by reason of snow or ice shall not be a defense under this section unless the defendant proves that he was prejudiced thereby.