Scanner can be used to find a String from a String. Consider the following example:

Java Code:
String strBuffer = "Name: Pollack Hobby: Music Age: 25";

Scanner scanner = new Scanner(strBuffer);

scanner.findInLine("Hobby:");

if (scanner.hasNext())
   System.out.println(scanner.next());
else
   System.out.println("Error!");