Tricks to stop biting my nails..

I have a nasty habit of biting my nails I have bit them for my whole life. I know I need to stop but I just keep on doing it I can't stop! Help!