Implementation of an alternative for the string-join function