skip space and count last word length