Use proximity matching and remove pointless try..catch block
Break up logic
Strip punctuation before adding to index
Separate method for indexing