add variable word length to not calculate it twice
add space which is needed for test to pass