Fixed issues related to inserting space on unfinalized block with trailing space. Added marker.clone() method.