checking for different types of dashes