Trim the hash.