In this task, you need to replace a letter in the sentence with another given letter.
Sentence: 'the bird is pecking on the window and perched on the ledge'. Replace the letter 'o' with 'j' in the sentence.