code for "Length of Last Word" (String manipulation)