String concatenation using ''.join() instead of writing to pseudo-file based on better benchmarking performance.