fixes bug in snakecase method that didn't account for dashes