use as_ptr() to get *const u8 of a str