fix for not recognizing names with dashes or apostrophes