Removed spaces and created function for joining