SwapCase function.