simple example of substring, lastIndexOf