So Is it possible to remove one letter from a string? For example

String Word = "Hello";

I want to create a function where decrementation happens like if you clicked it it will be Hell then Hel then He then H and "" is it possible?