Change VertexQueryPipe toString method to use a StringBuilder

Quick performance tweak