Removing the First Letter of a String

So I am terrible with string patterns, I need some help on this.

If I have this text:
local string = "ABC"

what I want to do is take off the first letter to make:
local string = "AB"

how would I do this? Thanks!

1 Like

Confused on what you want, you talk about the first letter “A”, but remove the last letter “C”.

local str = "ABC"

print(str:sub(2)) -- BC
print(str:sub(1, -2)) -- AB
28 Likes

Sorry I just had a typo, but yeah I meant:
local string = “BC”

thanks for your help!

2 Likes