To remove X letters from the right, use $left(<variable/string>,-X)
To remove Y letters from the left, use $right(<variable/string>,-Y)

By using a NEGATIVE number, you are counting from the opposite end, so $left with a negative number counts that name characters from the right. and vice versa for $right.