scanner-utils: add helper for appending an entire string Signed-off-by: Ran Benita <ran234@gmail.com>