fix parsing of parenthesis in strings