remove line breaks in DS for loop