Replace deprecated string.join()