Parsing works for all strings but not nested lists