name:android 이렇게 바꾸고 싶다는 것 같네요.
일단 저 위의 텍스트가
String text 란 변수에 저장되어 있다고 가정할게요.
text.replaceAll("B { name:", "B { name:android");
요로코롬 치환해주시면 됩니다.