Properly strip whitespace when join_texts is True