Replacing double quotes with single quotes where applicable