I want to remove a part of string from one character, that is:
Source string:
manchester united (with nice players)
Target string:
String Replace
String s = "manchester united (with nice players)"; s = s.replace(" (with nice players)", "");
Edit:
By Index
s = s.substring(0, s.indexOf("(") - 1);