fix #20 (failure on "true" and "false" with trailing characters)