Extra characters with mapValues

After I get the data from database via $rx.db.get(), I do

#set($orgurl = $rx.asmhelper.mapValues($dbres,‘URL’))

when I use it as


<a href="$orgurl">

I get extra characters “[” and “]” around the URL. like “[http://www.amda-pompe.org ]”

How can avoid these chars ([,])?

The type of return from $rx.asmhelper.mapValues(…) is: <b>List<String></b>
You may try to use .<b>get(0)</b> to get the 1st element of the returned list.

Thank you. That did it!