Strip leading and following single quotes from LS query