created index function. Strip punctuations for safer index matching
created log template