Solution:5

Solution:6

The rtrim function accepts a second parameter that will let you specify which characters you'd like it to trim. So, if you add your quote to the defaults, you can trim all the whitespace AND any quotes, and then re-add your end quote