extend syntactic sequencer to return empty string for begin and end