In this task, you need to replace a letter in the sentence with another given letter.
Sentence: 'the batter swings with a weight on his bat when he's the next batter up'. Replace the letter 'b' with 'y' in the sentence.