swift 5 string equal code example Example: swift compare strings print("foo".elementsEqual("bar")) //false