Trim and match non-whitespace on some variables

Prevents stash:not_empty false positives when there’s only
whitespace/newlines

Related to issue #30