lib/core: Added new `append_substring` service to avoid creating ephemeral instances