appending strings not working