How do I use the function trim() to take out double quotes at the begining and end of a string?
Use the second parameter of the [man]trim/man function - add a double quote character (or any other character) and it'll trim it.