In the string has an odd number of characters, then the last character in the string doesn't get swapped.