Use non-greedy operators for stripping out quoted contents of lines

This avoids problems where lines with brackets/parens between string literals get gobbled up.