captureDesktopScreenshot adding in screen name variable with date and time error

With captureScreenshot all not allowed characters will be replaced in automatically.

I thought the same was true for the captureDesktopScreenshot command.

In my macro I used this to remove all not allowed character

{
“Command”: “storeEval”,
“Target”: “str = "${Screen}"; str= str.replace(/([^a-z0-9]+)/gi, ‘_’); str”,
“Value”: “Screen2”
},

Today i retry this command It is possible that I did something wrong.