Fixed typing issue with appending list to string.