Instead of thinking literally think more in terms of thoughts and behavior. Sure you ought not actually say the lord's name in vain but the real purpose is to teach people to treat God with the awe he is due through their behavior and thoughts towards him. He is not a trivial casual being. I learned that from a guy named Max Lucado who learned it from a Jewish Rabbi. Seems to make sense.