Added support for multiple negations and nested brackets in unformat + fixed a typo