str1 = "\n Starbucks has the best coffee \n" newstr = str1.strip() or for sub in list1: rez.append(sub.replace("\n", ""))