Is your hair long enough to put up? Even if you hate it that way, just wear it up until you no longer have the urge to snack on it. You could try substituting habits too. Keep something with you to keep your hands or mouth occupied during times you'd normally be messing with your hair.