add check if stringbuilder is null