bool and char parsing