@Override
    public Void visitStringLiteral(final GremlinParser.StringLiteralContext ctx) {
        // remove the first and last character (single or double quotes)
        final String text = removeFirstAndLastCharacters(ctx.getText());
        handleStringLiteralText(text);
        return null;
    }
A base class for visitors that translate Gremlin AST nodes to Gremlin strings.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/language/translator/AbstractTranslateVisitor.java