Refactor c_echo()