updated to strip all brackets from locationSet elements