StringBuilder has a subString method so you don;t have to get the value into a String first.