Useweb3contracts string parameters

Whne using the useweb3contract it fails when i pass in a string as a variable and only accepts it typed.
E.g

await runContractFunction(
      {
        abi: contractAbi,
        contractAddress: contractAddrr,
        functionName: "saveString",
        params: {
          _message: stringAsVariable,
        }
      }
    );

await runContractFunction(
      {
        abi: contractAbi,
        contractAddress: contractAddrr,
        functionName: "saveString",
        params: {
          _message: "raw string",
        }
      }
    );

The first doesnt work but the second does. I need help urgently

It should, you can pass a state value, and you can also try and log your parameters. Also, make sure the string passed is a valid one For example passing hex values

Alright let me try passing as states.
Iā€™m trying to pass a url and Iā€™m converting it to string.
Let me try and get back again

It still doesnt work

So this probably has something to do with my string format?

What does the stringAsVariable look like if you console.log it? A URL should already be a string.