parse request string
optional elements
improved tokenizer