[java] How to remove single character from a String