Replace double quotes with single quotes where possible