txt = "Some text" txt += '\x07' # txt refers now to a new string having "Some text\x07"