How would you remove the last char of a string

How would you remove the last char of a string?

2 Likes
local str = "123"
str = str:sub(1, #str-1)
4 Likes