I have used Python’s built in string slicing to manipulate things like this in my print formats.
There are a bunch of tutorials on it in different presentation formats so you can choose your favorite. Google python string slicing tutorial.
That’s probably easier to understand and explain than counting the places from the front of the string to where you want to slice off. The straight up slicing is probably faster but also totally irrelevant in this use case.