Considering the below string which contains countries and their capitals in csv format.
let str = ` "country","capital" "