Your string is in Arabic language which starts from RIGHT TO LEFT,and in xcode it is reading the characters of string from LEFT TO RIGHT ( as per english language)
while reading the arabic string compiler will read the character from left to right so therefore it will get the last character of arabic string at very fist and first character of arabic string in last.
you can understand it from Link