pass_brackets() now preserves text forwards and backwards