Added support of selected area replacement only

:smiley: