Added support for reading text from STDIN