Remove quote from string with Trim

Hi,

how can I remove quote from a string?
This is not working … can anybody tell me what is wrong?
fileString.Trim({""""c})

I want to remove several qutoes " from a string, can this be accomplished in another way?

Hi,

You can use .Replace for this.

fileString.Replace("""","")

2 Likes

Hi,

thanks, that works!

But any idea whats wrong with the Trim functions?

Hi,

From my understanding, .Trim is only used to remove all white spaces on the front and end of a string. It’s like .TrimEnd or .TrimStart but for both ends. It’s useful to avoid human errors where a space or newline is left on the end of text.

Regards.

1 Like