def join_sentences(string1, string2, glue='<STR_LIT:.>'):
if not string1 or string1 == '<STR_LIT>':<EOL><INDENT>return string2<EOL><DEDENT>if not string2 or string2 == '<STR_LIT>':<EOL><INDENT>return string1<EOL><DEDENT>new_string = string1.rstrip()<EOL>if not new_string.endswith(glue):<EOL><INDENT>new_string += glue<EOL><DEDENT>new_string += '<STR_LIT:U+0020>' + string2.lstrip()<EOL>return new_string<EOL>
concatenate two sentences together with punctuation glue