working version of lowercase in Lua