How can I get my toddler to stop biting his nails?

Any tips to get my 3.5 year old to stop biting his nails?? He keeps tearing into his skin and causing himself to bleed and im so scared hes going to get an infection, plus i just want to break the terrible habit