what is the best way to extract a substring from a string in android?
substring():
str.substring(startIndex, endIndex);