added function safeIn, which quotes every element in a list and return it as string (element1, element2 ...)