Writeline Activity doesn't recognize or auto-populate "String" keyword or "String.format"

This above expression is wrong i think so @nithaS

You can try with

String.Join(“,”,ListVariables)

Regards
Gokul