結果 : remove character from string java without using inbuilt function