Rename error - system cannot find the file

I have the following commands in a button to rename a file from user input:

@disablenosel:numfiles=1

@set Client="{dlgstringS|Enter the client name:|Client}"
@set Activity="{dlgstringS|Enter the type of client activity - Income, Financials or Expenses:|Income}"
@set Year="{dlgstringS|Enter the year of the client activity:|2026}"

RENAME PATTERN="*" TO "{$Client}_{$Activity}_{$Year}" IGNOREEXT TYPE=files

If I enter "xx" in the Client variable, the rename completes successfully as xx_Income_2026.

If I enter "xx cc" I get the following error:

How can I enter text with spaces in it?

Windows 11, Opus 13.20.6

Remove the quotes from the three @set lines