You're still doing 6 string appends which are slow. It's a pretty easy flip to just use new StringBuilder.append(...).append(...) and would save you having to modify this later and is more performant in general. Just a tip though.