Lua word count needs to ignore case and restrict acceptable characters