Nationals get 5th straight, top Pirates 4-3