Revised sanitize.m so that it can work well. But it has not been evaluated yet.