Fixed parsing of the byte buffer
Added parsing of incoming string