character processing is good for echo and read