Perf mkstring improvement