How can I remove a specific character, a double-quote ("
), appearing any number of times, from the start and end of a string?
I had a look at string.trim()
, which trims any whitespace characters, but it's not possible to provide an optional argument with "
as the needle to search for.