@Override
    public StringExpression substring(int beginIndex) {
        return new StringConstant(constant.substring(beginIndex));
    }
StringConstant represents String constants

@author tiwe
querydsl-core/src/test/java/com/querydsl/core/StringConstant.java