Implemented the "substr" function, typically used within an esi:assign context.