Need Help Correcting a Very Bad Habit

I have this habit at work I dont do it at home I have children and have trained myself not around children "little pitchers have big ears" but at work or around other adults i find myself having a potty mouth.. lol its hard to break I have tried. But jas is 100 percent correct it makes you (me) sound like a moron.