Added SwapCase function