[java] Replace new line/return with space using regex