In general, it's better to have a good data model up front than creating procs to clean up the data later.
Anyway, post what you've tried, and someone here might help.