Created for loop for list of strings