If you plan to keep this code condition should be changed to ``r == '"'``, I think.