use StringBuilder.Length = 0 instead StringBuilder.Clear()