Implemented the substr modifier