Fixed wrong index in string.find()