removed unnecessary casting from list to string