Substring function?

Which btw, is in one of Steve’s responses in the thread linked - here.