Print output on pressing Enter and not just by clicking Convert button