Changed multiple str.join() statements into one