The process of modifying and maturing RNA molecules, including trimming and modifications of the 5' and 3' ends.