Small optimizations to stringbuilder & nimuv