Modified the regex matching for double quoted strings