modify editor flags, replace spaces with proper quotes