Handle situation with pair of brackets folowing other pair of brackets
Add complex example to tests, remove whitespaces