Added code for converting lists to Strings