String to byte

Hi, How can I convert string(char*) representation of byte (received through serial and cmdmessanger). I would like to send 8 bits in format 0b0000,0b11111.... and then fill byte array to display lcd.char. Thanks in advance