BTW, here's the documentation of other methods you can use to manipulate String fields: https://docs.oracle.com/javase/7/docs/api/java/lang/String.html. Might come in handy if you want to try something else other than lastIndexOf
and substring
.
CJ