Check for ".txt" filename