Faster snakecase implementation