added quote detection