working version of swapcase in Lua