fixed dash conversion and category naming and whatever
Compartmentalize this for use with complex strings or attributed strings.