Added trimming for titles and contents