Fixed bug with the `+=` operator with strings. Closes #743, #1050