Programs related to Java Strings