Remove spaces before separator.
Missing test case.
Flatten psi tree.