Hi Neema,
You can use Get_Web_Value command with Javascript as a Source Type. Here is a snapshot of how it would look. You can add the source of your string in the double quotes where "@string" is entered.
Here is the code snippet:
let str = "@string"
return str.length
Regards,
Subject7 Team