Added 'undefined' and 'null' to boolean strings check.