I bit my nails from about age 7 to age 19. I decided one day I was tired of my nails looking so nasty so I forced myself to stop, and I haven't done it since.

It's an incredibly disgusting habit actually, but you don't realize it until you let your nails get long and see how much nasty stuff gets under them.