In this task, you need to replace a letter in the sentence with another given letter.
Sentence: 'during a baseball game, a pitcher is throwing the ball while the batter is preparing to swing at it'. Replace the letter 'h' with 'p' in the sentence.