check if region is selected for send selected text to trash function