it was one of those where most of the charms had been lost , but toward the end of the book he found what he was looking for : a small , knotted handkerchief with some smudgy black writing along the hem .