I've tried. I'm not particularly religious or offended by "taking the Lord's name in vain" myself but I know that people who do believe are, so I've tried to teach my children it's not acceptable and that we don't say OMG/FGS etc out of respect for others.
I'm fighting a losing battle though because it seems these are perfectly acceptable things for teachers and TV presenters to say.