Correct various punctuation scopes

Set three capture indexes to correctly scope the string punctuation.