In this task, you need to replace a letter in the sentence with another given letter.
Sentence: 'there are several airplane in the air and they are leaving a trail'. Replace the letter 'r' with 'g' in the sentence.