Substring function?

You may wanna check this related thread.