Clean up long string pattern