A few handy tools for parsing boolean strings, as well as getting the minimal sum-of-products from a boolean string.