Assign result of URL.replace to URL