Add list_to_str fuction, which may transform list to str.