Strict checking on replace_url