split and tokenize a boolean expression string