Change Accordion label text in addition to the icon

I was looking to change the accordion label in addition to the accordion icon. e.g., ‘view more’ when collapsed, ‘view less’ when open and active. Is this possible?