Removing trailing whitespaces and newlines.
The function returns true if the target is initialized, otherwise, it returns false.
The array is optimized for SPMC and fast iteration (though MPMC transformation is also possible). This is an extremely simple implementation with support for atomic in-place modification through put -> remove elimination.