Thanks, you're right. The line I added used spaces for indentation while the other lines used tabs. >> for eachLine in allLines: >> test = string.lower(eachLine) // change is here >> if string.find(test, word) > -1: >> count = count + 1 >> print eachLine, >> Mark