swapcase functioning