BUG Java's replace returns the modified string