replaced quotes by single quotes, escaped single quotes where needed, preserved quotes where needed.