Added multiline support for StdInHandler