cleaned up, startswith() not finding lines