pub fn trim_spaces_and_newline<'a>(
    payload: &'static [u8],
    pointer_context: &'a mut PointerContext
)