So, as an example:
local Text = "Hello"; print(string.sub(Text, 1, 3)) -->> "Hel". print(Text:sub(1, 3)) --> "Hel";