let str = " Taylor Swift " let trimmed = str.trimmingCharacters(in: .whitespacesAndNewlines) // prints "Taylor Swift"