Exclude symbols other than 0, 1 and 2