lib/string.c: fix strim() semantics for strings that have only blanks