Added swapcase option