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