fixed issue with inconsistent handling of whitespace when appending elements