parse underscores and dashes