parsing boolean and string