Refine read charactor task by enforce to write \0 while writing
character