
James analysed a large number of donatory inscriptions in Sanchi, and noticed that most of them ended with the same two Brahmi characters.
Princep took them as Daanam - gifts - which allowed him to complete the puzzle, and fully decipher the script.
- Wikipedia - Brahmi Script - Decipherment