lib/hash: strip white space to improve formatting