updating strings and linked lists