Input stream is cleaned