Making changes for stdin and stdout
Testing for input and output
Removing newline