Examples of String class methods in Java SE