The first step should be to identify the cause of the black line on the nail. Once the diagnosis is clear, the doctor will give an individualised treatment plan based on the cause.
Patients with nail melanoma are treated primarily with surgery
Laugier-Hunziker syndrome is amenable to laser treatment of hyperpigmented spots.
Psychotherapy is feasible for patients with nail biting fetish.