Fixed a bug in appending strings and added some relevant tests