R Studio List To String Function