pub fn str_to_byte(s: &String) -> Result<u8>