fixed a bug on replaceQuotes(): every quote requires a blank line below