remove trailing char in doubly_list