Using string replace to update URLs