refactor multiple str_replace commands
replace references to wp/uploads to CDN