Change the input signature to a 2D list:
List<List<string>> value
The compiler is expecting a 1D list so the embedded foreach loop is therefore acting on characters hence the error.
Change the input signature to a 2D list:
List<List<string>> value
The compiler is expecting a 1D list so the embedded foreach loop is therefore acting on characters hence the error.