Optimize strBuf.join() when strBuf.length is 1.
Use Array.join() to concatenate strings in a few more places.