Boolean parse without regex