combined printing of length of hash and hash into one line