Removing trailing quotation marks