remove trailing spaces, correct typo, fix ref to custom sanitize_boolean()