Remove character Function