get the length of last word using split and len