Strip superfluous whitespace
Fix SQLite bools in comparisons as well