title: English within Arabic text alignment is changing after replace in Java
body: <p>I have a requirement to replace English key like customer name , account no, password values in a Arabic line. I have placeholder like CUST_NAME, ACC_NO and PWD_VAL for this.</p>
  
  <p>after replace, alignment of Arabic Text  is changing, as shown below. is there any way to prevent it.</p>
  
  <pre><code>public class TestArabic
  {
      public static void main(String...strings){
          String text="عزيزي "+"\u202A"+" CUST_NAME "+"\u202C"+" ، ل حساب عدد هو: "+"\u202A"+" ACC_NO "+"\u202C"+" و كلمة السر هي :"+"\u202A"+" PWD_VAL "+"\u202C"+" ، يرجى تغيير في تسجيل الدخول الأول";
  
          System.out.println(text);
          text = text.replace("CUST_NAME", "John");
          text = text.replace("ACC_NO", "1234");
          text = text.replace("PWD_VAL", "pass");
  
          System.out.println(text);
      }
  }
  </code></pre>
  
  <p>output</p>
  
  <p><img src="https://i.stack.imgur.com/hYAYw.png" alt="enter image description here"></p>