code: public static final String removeAmpersands(String name)
     {
        if (name != null)
        {
           if (name.indexOf('&') != -1)
           {
              StringBuilder sb = new StringBuilder();
              int index = 0;
              char c;
  
              while (index < name.length())
              {
                 c = name.charAt(index);
                 if (c != '&')
                 {
                    sb.append(c);
                 }
                 ++index;
              }
  
              name = sb.toString();
           }
        }
  
        return (name);
     }
docs: Utility method to remove ampersands embedded in names.
  
  @param name name text
  @return name text without embedded ampersands