fixed if statement to find hyphens.