parsing text to bool