Substringtransformer fix