Implemented CaptureNodeWithLiteral
Fixed substring
Merge pull request #1111 from omeaart/capturenode-with-literal

Implemented CaptureNodeWithLiteral