This function will try to convert the string, even for UTF8 characters.
string.lower(str)
Converts all uppercase characters in a string into lowercase characters.
Parameters
str
The string to be used to produce a string with lowercase characters.
Return value
Returns a new string with the same content but lowercase characters.Example
local console = require "console"
console.write('Enter a word : ')
local word = console.readln():lower()
print('Here the word in lower characters : '..word)