How to hide stringformat if data is null
"TargetNullValue" is what i was looking for.I ended up with this and it worked like a charm
<TextBlock VerticalAlignment="Top" Text="{Binding Path=TotalMonths, TargetNullValue={x:Static System:String.Empty}, StringFormat=Total: {0:C}}" />