How can i remove some amount of chars from a string?

Okay, so let us say there is this string “TestString” I then wanna remove some of them like if there was a way like this: string.Remove(2, right) then the string would look like this “TestStri”.

If you need some more information please write down below.

string.sub( 1, #string - 2 )

[editline]5th October 2016[/editline]

Strings are immutable, meaning you cannot directly change them, but you can get new ones.

Thanks :slight_smile: