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