The function swaps the positions of the first and second characters in a given string.

