JAVA removes the specified character from a string