startswith() not finding lines