converting block open-close symbols to constants