Use addslashes in PHP.
This way just work: As described in How to get Advanced Custom Fields image url paththis page (in chinese), this would work:
$main_car_pic = addslashes(get_field('car_photo'));
$reg_ext = "#.jpg#i";
$thumb_ext = "-150x150.jpg";
$car_thumb = preg_replace($reg_ext, $thumb_ext, $main_car_pic);
echo $car_thumb
Or simply like this:
<?php echo addslashes(get_field('field_name')); ?>