Added support for pasting words through a input dialog