local function ispali(str) str = str:lower() return str == str:reverse() end print(ispali("step on no pets")) print(ispali("banana"))