strlen/trim vs empty avoid false positives

Signed-off-by: Nick Ciske <nick@thoughtrefinery.com>