cleanup magic strings