split string with space then count last string length